package com.zxjbyte.yiyi.framework.common.core.ssl;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;

/**
 * 信任所有服务器域名
 * @Author zhangxingjia
 * @Date 2023/4/19 17:20
 * @Version: 1.0
 */
public class TrustAllHostnameVerifier implements HostnameVerifier {

    public static final HostnameVerifier INSTANCE = new TrustAllHostnameVerifier();

    @Override
    public boolean verify(String hostname, SSLSession session) {
        return true;
    }
}
